<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>江浙沪徒步、骑行指南</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <!-- 子模板可以插入额外的CSS -->
    {% block extra_css %}{% endblock %}
</head>
<body>
    <header class="glass-navbar">
        <div class="header-container">
            <a href="/" class="logo">
                <svg class="logo-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                    <path d="M12 2L2 7l10 5 10-5-10-5z"></path>
                    <path d="M2 17l10 5 10-5"></path>
                    <path d="M2 12l10 5 10-5"></path>
                </svg>
                <span>徒步探索</span>
            </a>
            <nav class="nav-links">
                <a href="/" class="{% if active_page == 'home' %}active{% endif %}">首页</a>
                <a href="{{ url_for('messages.message_board') }}" class="{% if active_page == 'messages' %}active{% endif %}">留言板</a>
                <a href="/api/top10_hiking_routes" class="{% if active_page == 'top10_hiking_routes' %}active{% endif %}">十大经典徒步路线榜单</a>
                <a href="#">夏季玩水路线榜单</a>
                <a href="#">星空、日出日落、露营地榜单</a>
                <a href="#">骑行路线榜单</a>

                    <!-- <a href="#">路线</a>-->
                    <!-- <a href="#">装备指南</a>-->
                    <!-- <a href="#">社区</a>-->
            </nav>
            <div class="user-actions">
                {% if current_user.is_authenticated %}
                    <div class="user-avatar">
                        <img src="{{ url_for('static', filename='images/avatar.jpg') }}" alt="用户头像">
                        <div class="dropdown-menu">
                            <a href="{{ url_for('profile.profile') }}">个人资料</a>
                            <a href="{{ url_for('auth.logout') }}" class="auth-btn" >退出</a>
                        </div>
                    </div>
                {% else %}
                    <a href="{{ url_for('auth.login') }}" class="auth-btn">登录/注册</a>
                {% endif %}
            </div>
        </div>
    </header>
    <main>
        {% block content %}{% endblock %}
    </main>
    <footer>
        <div class="footer-content">
            <p>&copy; 2025 江浙沪徒步、骑行指南</p>
            <div class="social-links">
                <a href="#" aria-label="微信">
                    <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
                    </svg>
                </a>
                <a href="#" aria-label="微博">
                    <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                        <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
                    </svg>
                </a>
            </div>
        </div>
    </footer>

    <!-- 子模板可以插入额外的JS -->
    {% block extra_js %}{% endblock %}
</body>
</html>